﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%
        var page = ViewData["Page"] as PageEntity;
        if (page != null)
        {%>

        <%=Html.Title("{0} - {1}", page.Name, ForumContext.Configuration.ForumName)%>

        <%
        }%>
        
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%
    
    
        Html.RenderPartial("LogOn");

        Html.RenderPartial("Navigation");

    %>
    <div class="white-space message-box">
        <h3>
            <%=TempData["Message"] %>
        </h3>
    </div>    

    <% if(Convert.ToBoolean(ViewData["ShowLogin"])) Html.RenderPartial("LoginView"); %>

</asp:Content>
